package com.shaozj.auth.model.vo;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Builder;
import lombok.Data;

@Builder
@Schema(description = "登录视图对象")
@Data
public class LoginVO {

    @Schema(description = "授权令牌")
    @JsonProperty("access_token")
    private String accessToken;

    @Schema(description = "刷新令牌")
    @JsonProperty("refresh_token")
    private String refreshToken;

    @Schema(description = "授权令牌 access_token 的有效期")
    @JsonProperty("expire_in")
    private Long expireIn;

    @Schema(description = "刷新令牌 refresh_token 的有效期")
    @JsonProperty("refresh_expire_in")
    private Long refreshExpireIn;

    @Schema(description = "应用ID")
    @JsonProperty("client_id")
    private String clientId;

    @Schema(description = "令牌权限")
    private String scope;

    @Schema(description = "用户openid")
    private String openid;
}